/**
 * Created by dell on 2017/7/21.
 */
enum SeasonEnum{
    SPRING,SUMMER,FALL,WINTER;
}
public class EnumTest {
    public void judge(SeasonEnum a){
        switch (a){
            case SPRING:
                System.out.println("春天到了，又到了繁殖的季节");
                break;
            case SUMMER:
                System.out.println("夏天到了，又到了下河的季节");
                break;
            case FALL:
                System.out.println("秋天收获的季节");
                break;
            case WINTER:
                System.out.println("相约在冬季");
                break;
        }

    }

    public static void main(String[] args) {
        for(SeasonEnum s:SeasonEnum.values()){
            System.out.println(s);
        }
        new EnumTest().judge(SeasonEnum.WINTER);
    }
}
